package com.example.a2212a_club_componse

import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.example.a2212a_club_componse.pages.ClubPage
import com.example.a2212a_club_componse.pages.ForgetPasswordPage
import com.example.a2212a_club_componse.pages.LoginCodePage
import com.example.a2212a_club_componse.pages.LoginPasswordPage
import com.example.a2212a_club_componse.pages.LookCarPage
import com.example.a2212a_club_componse.pages.MessagePage
import com.example.a2212a_club_componse.pages.MinePage
import com.example.a2212a_club_componse.pages.OnceLoginPage
import com.example.a2212a_club_componse.pages.PlayCarPage
import com.example.a2212a_club_componse.pages.ResetPasswordPage
import com.example.a2212a_club_componse.pages.SendCodePage

@Composable
fun NavHomeOne(it:PaddingValues,navHostController: NavHostController) {
    NavHost(modifier = Modifier.padding(it), navController = navHostController,
        startDestination = "club", builder = {
             composable("club"){ ClubPage() }
             composable("play"){ PlayCarPage() }
            composable("look"){ LookCarPage() }
            composable("message"){ MessagePage() }
            composable("mine"){ MinePage() }
            composable("onceLogin"){ OnceLoginPage() }
            composable("loginCode"){ LoginCodePage() }
            composable("sendCode"){ SendCodePage() }
            composable("loginPassword"){ LoginPasswordPage() }
            composable("forgetPassword"){ ForgetPasswordPage() }
            composable("resetPassword"){ ResetPasswordPage() }
        })
}